package com.butterfly.hotkey.dashboard.biz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 分析表
 * </p>
 *
 * @author butterfly
 * @since 2024-11-05
 */
@TableName("hk_statistics")
public class Statistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * keyName
     */
    private String keyName;

    /**
     * 计数
     */
    private Integer count;

    /**
     * app
     */
    private String app;

    /**
     * 天数
     */
    private Integer days;

    /**
     * 小时数
     */
    private Long hours;

    /**
     * 分钟数
     */
    private Long minutes;

    /**
     * 业务类型
     */
    private Integer bizType;

    /**
     * 所属规则
     */
    private String rule;

    /**
     * 防重ID
     */
    private String uuid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private String updater;


    public Long getId() {
        return id;
    }

    public Statistics setId(Long id) {
        this.id = id;
        return this;
    }

    public String getKeyName() {
        return keyName;
    }

    public Statistics setKeyName(String keyName) {
        this.keyName = keyName;
        return this;
    }

    public Integer getCount() {
        return count;
    }

    public Statistics setCount(Integer count) {
        this.count = count;
        return this;
    }

    public String getApp() {
        return app;
    }

    public Statistics setApp(String app) {
        this.app = app;
        return this;
    }

    public Integer getDays() {
        return days;
    }

    public Statistics setDays(Integer days) {
        this.days = days;
        return this;
    }

    public Long getHours() {
        return hours;
    }

    public Statistics setHours(Long hours) {
        this.hours = hours;
        return this;
    }

    public Long getMinutes() {
        return minutes;
    }

    public Statistics setMinutes(Long minutes) {
        this.minutes = minutes;
        return this;
    }

    public Integer getBizType() {
        return bizType;
    }

    public Statistics setBizType(Integer bizType) {
        this.bizType = bizType;
        return this;
    }

    public String getRule() {
        return rule;
    }

    public Statistics setRule(String rule) {
        this.rule = rule;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public Statistics setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Statistics setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public Statistics setCreator(String creator) {
        this.creator = creator;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public Statistics setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdater() {
        return updater;
    }

    public Statistics setUpdater(String updater) {
        this.updater = updater;
        return this;
    }

    @Override
    public String toString() {
        return "Statistics{" +
                "id=" + id +
                ", keyName=" + keyName +
                ", count=" + count +
                ", app=" + app +
                ", days=" + days +
                ", hours=" + hours +
                ", minutes=" + minutes +
                ", bizType=" + bizType +
                ", rule=" + rule +
                ", uuid=" + uuid +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                ", updater=" + updater +
                "}";
    }
}
